﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ServerUI
{
    public partial class ProperWnd : WeifenLuo.WinFormsUI.Docking.DockContent
    {

        public ProperWnd()
        {
            InitializeComponent();
        }

        private delegate void setobj_del(object obj);
        public void SetObject(object obj)
        {
            if (this.propertyGrid.InvokeRequired)
            {
                setobj_del del = new setobj_del(SetObject);
                this.propertyGrid.BeginInvoke(del, obj);
            }
            else
            {
                this.propertyGrid.SelectedObject = obj;
            }
        }

        private void ProperWnd_Load(object sender, EventArgs e)
        {

        }
    }
}
